package org.mendoza.salud.hvt.ui.mywidgets;

/**
 * Created by administrador on 02/03/15.
 */

import com.vaadin.data.util.BeanItemContainer;
import org.mendoza.salud.hvt.model.AbstractEntity;

import javax.annotation.PostConstruct;
import java.util.Collection;

public class MyBeanItemContainer<T extends AbstractEntity> extends BeanItemContainer{

    public MyBeanItemContainer(Class type) throws IllegalArgumentException {
        super(type);
        init();
    }

    public MyBeanItemContainer(Collection collection) throws IllegalArgumentException {
        super(collection);
        init();
    }

    public MyBeanItemContainer(Class type, Collection collection) throws IllegalArgumentException {
        super(type, collection);
        init();
    }
    
    private void init () {
        removeContainerProperty("id");
        removeContainerProperty("uid");
        removeContainerProperty("version");
    }
}
